﻿<Window x:Class="XWord.GUI.Views.LCArticleView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cal="http://www.caliburnproject.org"
        Title="LCArticleView" Height="300" Width="300">
    <Grid>
        <StackPanel>
            <ListBox ItemsSource="{Binding LCArticleList}"
                 cal:Message.Attach="[Event SelectionChanged] = [Action OpenArticleDetailViewDialog($this.SelectedItem)]">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding CreateTime}"></TextBlock>
                            <TextBlock Text="{Binding Part}" Foreground="Red"></TextBlock>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </StackPanel>
    </Grid>
</Window>
